namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("CONTACT_INFO")]
    public class ContactInfo : ObjectRow {
        
        public ContactInfo() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public ContactInfo(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected ContactInfo(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("CUSTOMER_ID")]
        public decimal CUSTOMERID {
            get {
                return (System.Decimal)GetValue("CUSTOMERID");
            }
            set {
                SetValue("CUSTOMERID", value);
            }
        }
        
        [Field("ADDRESS_LINE")]
        public string ADDRESSLINE {
            get {
                return (System.String)GetValue("ADDRESSLINE");
            }
            set {
                SetValue("ADDRESSLINE", value);
            }
        }
        
        [Field("ADDRESS_LINE2")]
        public string ADDRESSLINE2 {
            get {
                return (System.String)GetValue("ADDRESSLINE2");
            }
            set {
                SetValue("ADDRESSLINE2", value);
            }
        }
        
        [Field("POSTAL_CODE")]
        public string POSTALCODE {
            get {
                return (System.String)GetValue("POSTALCODE");
            }
            set {
                SetValue("POSTALCODE", value);
            }
        }
        
        [Field("CITY")]
        public string CITY {
            get {
                return (System.String)GetValue("CITY");
            }
            set {
                SetValue("CITY", value);
            }
        }
        
        [Field("DISTRICT")]
        public string DISTRICT {
            get {
                return (System.String)GetValue("DISTRICT");
            }
            set {
                SetValue("DISTRICT", value);
            }
        }
        
        [Field("STATE")]
        public string STATE {
            get {
                return (System.String)GetValue("STATE");
            }
            set {
                SetValue("STATE", value);
            }
        }
        
        [Field("COUNTRY_CODE")]
        public string COUNTRYCODE {
            get {
                return (System.String)GetValue("COUNTRYCODE");
            }
            set {
                SetValue("COUNTRYCODE", value);
            }
        }
        
        [Field("TELEPHONE")]
        public string TELEPHONE {
            get {
                return (System.String)GetValue("TELEPHONE");
            }
            set {
                SetValue("TELEPHONE", value);
            }
        }
        
        [Field("FAX")]
        public string FAX {
            get {
                return (System.String)GetValue("FAX");
            }
            set {
                SetValue("FAX", value);
            }
        }
        
        [Field("E_MAIL")]
        public string EMAIL {
            get {
                return (System.String)GetValue("EMAIL");
            }
            set {
                SetValue("EMAIL", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public long LAST_UPDATE_TIME
        {
            get
            {
                return (long)GetValue("LAST_UPDATE_TIME", DateTime.Now);
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }
        
        [Field("SLOG_CODE")]
        public string SLOGCODE {
            get {
                return (System.String)GetValue("SLOGCODE");
            }
            set {
                SetValue("SLOGCODE", value);
            }
        }

       
        
       
        
       
    }
}
